package com.lgd.experiment;

/**
 * Created by 299174105 on 2017/9/10.
 */
public class Test {
    public static void main(String[] args) {
        System.out.println(getAge(8));

    }
    public static int getAge(int n) {
        if (n == 1) {
            return 10;
        } else {
            return getAge(n - 1) + 2;
        }
    }
}
